package ar.com.ironsoft.javaopenauth.web.servlets.hotmail;

import java.io.IOException;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import ar.com.ironsoft.javaopenauth.utils.Constants;

@SuppressWarnings("serial")
public class ClearTokenServlet extends HttpServlet{

	
	public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException{
		doPost(request,response);
	}
	
	public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException{
		//Clear token
		request.getSession().setAttribute(Constants.SESSION_OAUTH_TOKEN, null);
	}

}
